$("textarea[name='msgtxt']").val( '$content'   );
$("input[name='to']").val( '$to'   );
$("input[name='subj']").val( '$subject'   );


document.forms['frm_writemail'].submit();

 
 